package com.jiazhong.servlets;


import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

/**注解实现*/

@WebServlet("/servletTest02")
public class ServletTest02 implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("初始化");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("处理业务逻辑");
    }

    @Override
    public String getServletInfo() {
        return "";
    }

    @Override
    public void destroy() {
        System.out.println("销毁");
    }
}
